package com.wwmz.template.pattern.course;

/**
 * Created by wumz on 2020/9/21 17:22
 */
public class JavaCourse extends AbstractCourse {
    private boolean needCheckHomework = false;
    public void setNeedCheckHomework(boolean needCheckHomework) {
        this.needCheckHomework = needCheckHomework;
    }

    @Override
    protected void checkHomework() {
        System.out.println("检查Java作业");
    }

    @Override
    protected boolean needCheckHomework() {
        return needCheckHomework;
    }
}
